#include<bits/stdc++.h>
using namespace std;
const int N=100002;
int n,r[N];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++)
        cin>>r[i];
    sort(a+1,a+n+1);
    int killed=0;
    for(int i=1;i<=n;i++){
        if(r[i]>r[killed+1])
            killed++;
    }
    cout<<n-killed<<endl;
    return 0;
}
